//package com.suse.lhw.resourceservere.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
//import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
//
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @ProjectName: health_manage_system
// * @Package: com.suse.lhw.resourceservere.config
// * @ClassName: ResourcesConfig
// * @Description: java类作用描述
// * @Author: 李鸿炜
// * @CreateDate: 2020/4/8 16:45
// * @UpdateUser: 更新者
// * @UpdateDate: 2020/4/8 16:45
// * @UpdateRemark: 更新说明
// * @Version: 1.0
// */
//@Configuration
//@EnableResourceServer
//@Order(3)
//public class ResourcesConfig extends ResourceServerConfigurerAdapter {
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http
//                .csrf().disable()
//                .exceptionHandling()
//                .authenticationEntryPoint((request, response, authException) -> response.sendError(HttpServletResponse.SC_UNAUTHORIZED))
//                .and()
//                .authorizeRequests()
//                .anyRequest().authenticated()
//                .and()
//                .httpBasic();
//    }
//
//}
